package com.own.business.system.dictionary.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BasePo;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * SystemDictionary
 *
 * @author chenxueli
 * @date 2023-06-21 09:37:40
 */
@Schema(title = "系统数据字典" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "own_system_dictionary")
public class SystemDictionary extends BasePo {

    @Schema(title = "字典名称")
    private String name;

    @Schema(title = "唯一编号")
    private String code;

    @Schema(title = "图标")
    private String icon;

    @Schema(title = "顺序，默认数字越小约在前面")
    private Integer sortOrder;

}
